#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include<QImage>
QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
    QImage img;
    unsigned char*graydata;
    QImage *grayImg;

private:
    Ui::Widget *ui;
private slots:

    void on_Choose_clicked();
    void on_Gray_clicked();
    void on_Rotate_clicked();
    void on_shrink_clicked();
    void on_horizontalSlider_valueChanged(int value);
    void on_enlarge_clicked();
};
#endif // WIDGET_H
